<extend name="_layout/main"/>
<block name="head">
    <style>
        .lianmeng .bottom .content .list, .sjfenlei .bottom .content .list {
            width: 100%;
        }

        .sjfenlei .top ul li {
            width: 100%;
        }

        select {
            float: left;
            width: 85%;
        }
    </style>
</block>
<block name="top">
    <header class="mui-bar mui-bar-nav mui-bar-nav2" id="header">
        <a class="btn" href="javascript:history.go(-1)">
            <i class="iconfont icon-fanhui"></i>
        </a>
        <div class="top-sch-box top-sch-boxtwo top-sch-boxfour flex-col">
            活动列表
        </div>
    </header>
</block>
<block name="content">
    <div class="warp warpthree clearfloat">
        <div class="sjfenlei clearfloat">
            <div class="top clearfloat">
                <ul>
                    <li>
                        <select name="industry" id="industry">
                            <option value="" >选择行业</option>
                            <volist name="industry" id="item">
                                <option value="{$item.id}"
                                <eq name="Think.get.industry" value="$item['id']">selected</eq>
                                >{$item.name}</option>
                            </volist>
                        </select>
                        <i class="iconfont icon-xiala1"></i>
                    </li>
                </ul>
            </div>
            <div class="bottom clearfloat">
                <div class="content clearfloat box-s">
                    <notempty name="result">
                        <volist name="result" id="item">
                            <div class="list clearfloat fl">
                                <a href="{:U('detail', ['id'=>$item['id']])}">
                                    <div class="tu clearfloat fl ra5">
                                        <span></span>
                                        <img src="{$item.thumb}"/>
                                    </div>
                                    <div class="nr clearfloat fr">
                                        <p class="bt over">{$item.activity_name}</p>
                                        <p class="fu-tit">{$item.activity_summary|stripslashes|msubstr=20,'...'}</p>
                                    </div>
                                </a>
                            </div>
                        </volist>
                        <else/>
                        <div class="list clearfloat fl">
                            <p>没有相关活动</p>
                        </div>
                    </notempty>
                </div>
            </div>
            <div class="show-page">
                {$page}
            </div>
        </div>
    </div>
</block>
<block name="scripts">
    <script>
        var url = "{:U('lst')}";
        $(document).on('change', '#industry', function (e) {
            var industry_id = $(this).val();
            if(industry_id && !isNaN(industry_id)){
                document.location.href = url+'?industry='+industry_id;
            }
        })
    </script>
</block>